
const getThisMonthEnd = dateStr => {
	  let date = new Date(dateStr); //当前日期
	  let nextMonthDayOne = new Date(
		date.getFullYear(),
		date.getMonth() + 1,
		1
	  ).getTime();
	  let thisMonthDayEnd = new Date(nextMonthDayOne - 86400000);
	  let y = thisMonthDayEnd.getFullYear(); //当前年
	  let m = thisMonthDayEnd.getMonth() + 1; //当前月
	  m = m < 10 ? '0' + m : m;
	  let d = thisMonthDayEnd.getDate();
	  d = d < 10 ? '0' + d : d;
	  var timer = y + '-' + m + '-' + d;
	  return timer
}
export default {
	getThisMonthEnd:getThisMonthEnd
}
